
package com.hdoit.ares.web.team.modelconfig;
import com.hdoit.ares.web.team.providers.CooperationTeamBusinessProvider;
import com.tennetcn.common.enums.regular.MathRegularExpressions;
import com.tennetcn.component.attribute.DateTimeAttribute;
import com.tennetcn.component.attribute.DisplayNameAttribute;
import com.tennetcn.component.attribute.DropDownListAttribute;
import com.tennetcn.component.attribute.RegularExpressionAttribute;
import com.tennetcn.web.superbase.modelconfig.EmployeeConfig;

/**
 * @author      yujinhui
 * @email       
 * @createtime  2018年01月18日 14:34:06
 * @comment
 */
public class CooperationTeamConfig extends EmployeeConfig{
    public CooperationTeamConfig(){
		this.setProperty("createDate")
			.hasAttribute(new DisplayNameAttribute("加入时间"))
			.hasAttribute(new DateTimeAttribute());
		
		this.setProperty("businessId")
			.hasAttribute(new DisplayNameAttribute("公司"))
			.hasAttribute(new DropDownListAttribute(new CooperationTeamBusinessProvider(), false));
		
		this.setProperty("roleIds")
			.hasAttribute(new DisplayNameAttribute("角色"));

        this.setProperty("userIdentity")
            .hasAttribute(new DisplayNameAttribute("用户编号"))
            .hasAttribute(new RegularExpressionAttribute(MathRegularExpressions.naturalNumber));

        this.setProperty("provinceId")
            .hasAttribute(new DisplayNameAttribute("地区"));

        this.setProperty("cityId")
            .hasAttribute(new DisplayNameAttribute("城市"));

        this.setProperty("districtId")
            .hasAttribute(new DisplayNameAttribute("区县"));
        
        this.setProperty("comments")
        	.hasAttribute(new DisplayNameAttribute("备注"));

    }
}
